Appendixes

 
 


APPENDIXES

JavaScript call from an item.

The JavaScript Command lets you specify a custom function or line of JavaScript code that should be executed when an event occurs (for example, "OnMouseOver", "OnMouseClick"). (You can write the JavaScript yourself, or you can use code provided by various freely available JavaScript libraries on the Web.)

To use the JavaScript Command:

Select an item and the properties panel appears.

Type the exact JavaScript command to be executed, or type the name of a function in the JavaScript Command field.

Note: If you have encapsulated your code in a function, type only the function name (for example, goBack()).

Click Preview to ensure that the item acts in the way you want.

You can embed any valid JavaScript function call, property, global variable, or other expression. To embed a JavaScript expression, place it inside braces ({}). To display a brace, precede it with a backslash (\{).

Example:

if (confirm('Are you really a JavaScript Guru?')) navigate('guru.htm')



Flash integration.

Flash objects are small graphic SWF (Shockwave) files you can create while working in Macromedia Flash.

Macromedia's Flash technology is the premier solution for the delivery of vector-based graphics and animations. Flash Player is available as both a Netscape Navigator plugin and an ActiveX control for Microsoft Internet Explorer on the PC, and it is incorporated in the latest versions of Netscape Navigator, Microsoft Windows, and America Online. Before you integrate the Flash in Web Menu Builder items, you may want to review the three different Flash file types.

The Flash file (.fla) is the source file for any project and is created in the Flash program. This type of file can only be opened in Flash, not in Web Menu Builder or in browsers. You can open the Flash file in Flash, then export it as an SWF or SWT file to use in browsers.

The Flash movie file (.swf) is a compressed version of the Flash (.fla) file, optimized for viewing on the Web. This file can be played back in browsers and previewed in Web Menu Builder, but cannot be edited in Flash. This is the type of file you create when using the Flash button and text objects.

The Flash Generator template (.swt) files enable you to modify and replace information in a Flash movie file. These files are used in the Flash button object, which lets you modify the template with your own text or links, to create a custom SWF to insert in your document.

If you use Flash to design your own Generator template files, you can distribute these templates to members of your Web design team.

Using Flash Text allows you to design Web pages that use nonstandard fonts without worrying about which fonts visitors to your site have available on their computers. Flash buttons are created from Flash templates. You can easily customize a template button and add it to your Web pages.

To integrate Flash file into the menu item:

Select an item and open the panel of preferred item state ("Normal", "OnMouseOver" or "OnMouseClick") in the properties window.

Click on Flash button to open Flash properties dialog.

Specify valid Flash file or select it from an open file dialog.

Specify background color, width and height parameters if needed.

Click Preview to ensure that the item acts in the way you want.